/**
 * 注册组件
 */
import Vue from 'vue';
const files = require.context('@/components', true, /\.vue$/);
files.keys().forEach(fileName => {
    const componentConfig = files(fileName)
    let commentsName = fileName.split('/')[1]
    Vue.component(commentsName,componentConfig.default)
})